/*
 * ShowStringWidget.h
 *
 *  Created on: 2015-8-14
 *      Author: 10095427
 */

#ifndef SHOWSTRINGWIDGET_H_
#define SHOWSTRINGWIDGET_H_

#include "cocos2d.h"

USING_NS_CC;

class ShowStringWidget : public cocos2d::Layer
{
public:
    CREATE_FUNC(ShowStringWidget);
    virtual bool init() override;
    ShowStringWidget();
    virtual void update(float dt) override;
    void setText(const std::string &text);
    void setTextColor(Color3B color);
private:
    LabelTTF *strLabel;
    float lastTime;
    void labelInit();




};

#endif /* SHOWSTRINGWIDGET_H_ */
